#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MOD = 998244353;

LL qpow(LL a, LL b, LL p)
{
	LL ans = 1;
	while(b)
	{
		if(b & 1) ans = ans * a % p;
		a = a * a % p;
		b >>= 1;
	}
	return ans;
}

int main()
{
	int n, k; cin >> n >> k;
	cout << qpow(qpow(2, k, MOD) - 1, n, MOD) << endl;
	return 0;
}